<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<title>회원정보</title>
<jsp:useBean class="ch06.PersonalInfo" id="pinfo"/>
<jsp:setProperty name="pinfo" property="name" value="김연희"/>
<jsp:setProperty name="pinfo" property="gender" value="여"/>
<jsp:setProperty name="pinfo" property="age" value="29"/>
이름: <jsp:getProperty name="pinfo" property="name"/>
성별: <jsp:getProperty name="pinfo" property="gender"/>
나이: <jsp:getProperty name="pinfo" property="age"/>

<%--
<jsp:useBean ~>
PersonalInfo pinfo = new PersonalInfo();
pageContext.setAttribute("pinfo",pinfo);

<jsp:setProperty ~>
PersonalInfo pinfo = (PersonalInfo)pageContext.getAttribute("pinfo");
pinfo.setName("김연희");

<jsp:getProperty ~>
PersonalInfo pinfo = (PersonalInfo)pageContext.getAttribute("pinfo");
out.println(pinfo.getName());
 --%>